/**
 *
 * @name 全局配置 开发环境
 * @description 诸如连接后台的host地址，angular的配置项等等
 * @author yud
 *
 */

var CONFIG = {
    fronthost: 'http://localhost:9000/#',
    API_HOST: 'http://test.maikeji.cn:4000',
    //api_host: 'https://api.metalab.cn/',
    html5_mode: false,
    qnuploader: {
        domain: 'http://7xixj1.com1.z0.glb.clouddn.com/',
        //uptokenUrl: 'http://192.168.0.101:4000/upload/token',
        uptokenUrl: 'http://test.maikeji.cn:4000/qiniu/uptoken',
        maxSize: '1m'
    },
    qnuploaderImage: {
        domain: 'http://7xixj1.com1.z0.glb.clouddn.com/',
        //uptokenUrl: 'http://192.168.0.101:4000/upload/token',
        uptokenUrl: 'http://test.maikeji.cn:4000/qiniu/uptoken',
        maxSize: '1m',
        mimeTypes: [
            {title: "image files", extensions: "jpg,jpeg,gif,png"}
        ]
    },
    froalaoptions: {
        key: 'xb-13szd-8pg-7b-21b3zt==',
        toolbarbuttons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsMD: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsSM: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsXS: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        imageinsertbuttons: ["imageupload"],
        language: 'zh_cn',
        fileuploadurl: 'http://test.maikeji.cn:4000/qiniu/upload',
        imageuploadurl: 'http://test.maikeji.cn:4000/qiniu/upload',
        fontfamily: {
            'microsoft yahei, 微软雅黑': '微软雅黑',
        },
        heightmin: 100,
        toolbarsticky: true
    },
    froalaupdateoptions: {
        key: 'xb-13szd-8pg-7b-21b3zt==',
        toolbarbuttons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsMD: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsSM: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        toolbarButtonsXS: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|', 'color', 'emoticons', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', 'insertHR', '-', 'insertLink', 'insertImage', 'insertTable', 'undo', 'redo', 'clearFormatting', 'selectAll', 'html'],
        imageInsertButtons: ["imageUpload"],
        language: 'zh_cn',
        fileUploadURL: 'http://test.maikeji.cn:4000/qiniu/upload',
        imageUploadURL: 'http://test.maikeji.cn:4000/qiniu/upload',
        fontFamily: {
            "'Microsoft YaHei', 微软雅黑": '微软雅黑',
        },
        heightMin: 300,
        toolbarSticky: true
    }
};
